/*
 * =====================================================================================
 *
 *       Filename:  BranchNode.h
 *
 *    Description:
 *
 *        Version:  1.0
 *        Created:  01/06/2022 09:49:05 AM
 *       Revision:  none
 *       Compiler:  gcc
 *
 *         Author:  first_name last_name (fl), fl@my-company.com
 *        Company:  my-company
 *
 * =====================================================================================
 */

#pragma once
#include "CorpNode.h"
#include <vector>
#include <iostream>
using std::vector;
using std::string;
class CBranchNode: public CCorpNode {
  public:
    CBranchNode(void);
    CBranchNode(string name, string pos, int salary);
    ~CBranchNode(void);
    void Add(CCorpNode* pcorpNode);
    vector < CCorpNode* >GetSubordinateInfo();
    bool IsLeaf();
  private:
    vector < CCorpNode* >m_subordinateList;
};
